const {
    Random
} = require("mockjs")
const Mock = require("mockjs")
const Hotel = require("../model/Record")


//创建数据的函数
async function recordData() {
    //酒店列表数据
    const {
        recordList
    } = Mock.mock({
        "hotelList|20": [{

        }]
    })
    const res = await Promise.all(
        hotelList.map((item) => {
            // console.log(item);
            return Hotel.create(item)
        })
    )
}


module.exports = hotelData